<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
 String path = request.getContextPath();
 String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<base href="<%=basePath%>">
	<title>注册 - SegmentFault</title>
	<jsp:include page="../common/_meta.jsp"></jsp:include>
</head>
<body>
	<jsp:include page="../common/_header.jsp"></jsp:include>
	<div class="wrap">
		<div class="min-inner session-edge">
			<h2 class="big-title">登录</h2>
			<div class="sfid-login">
				使用本站帐号登录 ( <a href="user/register">注册</a> 或 <a href="user/forgot">找回密码</a>)
				<form action="user/session" method="post">
					<p style="position: relative;">
						<label for="mail">Email 地址</label> <input type="email" name="user.email" placeholder="Email 地址" value="" class="text-34" required="">
						<c:if test="${errorMail eq '1'}">
							<span class="text-error">电子邮箱不正确！</span>
						</c:if>
					</p>
					<p style="position: relative;">
						<label for="password">登录密码</label> <input type="password" name="user.password" placeholder="登录密码" class="text-34" required="">
						<c:if test="${errorPwd eq '1'}">
							<span class="text-error">邮箱与密码不匹配！</span>
						</c:if>
					</p>
					<input class="btn-big" type="submit" value="登录">
				</form>
			</div>
		</div>
	</div>
	<!-- end .wrap -->
	<jsp:include page="../common/_footer.jsp"></jsp:include>
</body>
</html>